//
//  LRXThingStoreCell.m
//  路人侠
//
//  Created by zhangxulong on 4/17/16.
//  Copyright © 2016 zhangxulong. All rights reserved.
//

#import "LRXThingStoreCell.h"
@interface LRXThingStoreCell()
@property (nonatomic,strong) UILabel * cellLabel;
@end
@implementation LRXThingStoreCell
- (UILabel *)cellLabel
{
    if (_cellLabel == nil) {
        _cellLabel = [[UILabel alloc]init];
       
    }
    return  _cellLabel;
}
- (void)layoutThingStoreCell:(NSString *)cellStr
{
    CGFloat cellW = 160 * wScale;
    CGFloat cellH = 88 * hScale;
    UIView * cellSelectSubBackView = [[UIView alloc]init];
    UIView * cellSelectBackView = [[UIView alloc]init];
    
    cellSelectBackView.backgroundColor = [UIColor whiteColor];
    cellSelectBackView.frame = CGRectMake(0, 0,cellW, cellH);
    cellSelectSubBackView.backgroundColor = [UIColor colorWithRed:255 green:156 blue:0];
    cellSelectSubBackView.frame = CGRectMake(0, 0, 9 * wScale, cellH);
    [cellSelectBackView addSubview:cellSelectSubBackView];
    
    self.selectedBackgroundView = cellSelectBackView;
    
    self.cellLabel.text = cellStr;
    self.cellLabel.font = [UIFont systemFontOfSize:28 * hScale];
    self.cellLabel.frame = CGRectMake(30 * wScale, 0, cellW - 30 * wScale, cellH);
    self.cellLabel.textAlignment = NSTextAlignmentLeft;
    [self addSubview:self.cellLabel];
}
@end
